package _4lists.src.stack;


/**
 * @className: ceshi
 * @description:
 * @author: myself
 * @date: 2025/7/24 15:18
 * @version: 0.1
 * @since: JDK17
 */
  /*LinkedListStack<Integer> sa = new LinkedListStack<>(10);
        sa.push(1);
        sa.push(2);
        sa.push(3);
        System.out.println(sa.peek());//3
        System.out.println(sa.pop());//2=3
        System.out.println(sa.pop());//2*/
public class ceshi {
    public static void main(String[] args) {
        arrayStack<Integer> sa = new arrayStack<>(10);
        sa.push(1);
        sa.push(2);
        sa.push(3);
        System.out.println(sa.peek());//3
        System.out.println(sa.pop());//2=3
        System.out.println(sa.pop());//2
    }
}
